package com.asdc.autoscanfiles.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.asdc.autoscanfiles.dto.RestRet;
import com.asdc.autoscanfiles.entity.User;

@RestController
@RequestMapping("/api")
public class LoginController {

	@RequestMapping("/login.action")
	public RestRet login(String username, String password) {
		RestRet ret = new RestRet();
		ret.setSuccess(true);
		User user = new User();
		user.setUserName(username);
		user.setDisplayName(username);
		ret.setData(user);
		return ret;
	}

}
